<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Frozen.aspx.cs" Inherits="Frozen" %>
<%--
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Frozen Headers Sample</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:SqlDataSource ID="PubsDataSource" runat="server" SelectCommand="SELECT [au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract] FROM [authors]"
                UpdateCommand="" ConnectionString="<%$ ConnectionStrings:Pubs %>" />
            <rwg:FrozenGridView ID="FrozenGrid" DataSourceID="PubsDataSource" AutoGenerateColumns="False" Height="200px" Width="800" Scrolling="Vertical"
                DataKeyNames="au_id" runat="server" BorderStyle="None">
                <HeaderStyle BackColor="SteelBlue" ForeColor="White" BorderWidth="0" />
                <columns>
                    <asp:BoundField HeaderText="Last Name" DataField="au_lname" />
                    <asp:BoundField HeaderText="First Name" DataField="au_fname" />
                    <asp:BoundField HeaderText="Phone" DataField="phone" />
                    <asp:BoundField HeaderText="Address" DataField="address" />
                    <asp:BoundField HeaderText="State" DataField="state" />
                    <asp:BoundField HeaderText="City" DataField="city" />
                    <asp:BoundField HeaderText="Zip Code" DataField="zip" />
                    <asp:CheckBoxField HeaderText="Contract" DataField="contract" />
                </columns>
            </rwg:FrozenGridView>
            <br />
            <rwg:FrozenGridView ID="FrozenGridView1" DataSourceID="PubsDataSource" AutoGenerateColumns="False" Height="200px" Width="800" Scrolling="Vertical"
                DataKeyNames="au_id" runat="server" BorderStyle="None">
                <HeaderStyle BackColor="SteelBlue" ForeColor="White" BorderWidth="0" />
                <columns>
                    <asp:BoundField HeaderText="Last Name" DataField="au_lname" />
                    <asp:BoundField HeaderText="First Name" DataField="au_fname" />
                    <asp:BoundField HeaderText="Phone" DataField="phone" />
                    <asp:BoundField HeaderText="Address" DataField="address" />
                    <asp:BoundField HeaderText="State" DataField="state" />
                    <asp:BoundField HeaderText="City" DataField="city" />
                    <asp:BoundField HeaderText="Zip Code" DataField="zip" />
                    <asp:CheckBoxField HeaderText="Contract" DataField="contract" />
                </columns>
            </rwg:FrozenGridView>
        </div>
    </form>
</body>
</html>
